package com.waterai.dao;

import com.waterai.dto.UserDTO;
import com.waterai.entity.User;
import com.waterai.excel.UserExcel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserDao {
    List<UserDTO> querySelectList(@Param("params") Map<String, Object> mapper);

    int queryListCount(@Param("params") Map<String, Object> mapper);

    User selectById(@Param("id") Long id);

    void insert(@Param("obj") User user);

    void updateById(@Param("obj") User user);

    void importBatch(@Param("list") List<UserExcel> list);

    void importBatchNoId(@Param("list") List<UserExcel> list);
}
